package behavior.visitor_plus;

public abstract class Task {
    private String name;
    private int type;
    protected Task(String _name, int _type){
        this.name = _name;
        this.type = _type;
    }

    public void accept(Visitor v){
        v.visit(this);
    }

    public String getName() {
        return name;
    }

    public int getType() {
        return type;
    }

    @Override
    public String toString() {
        return "Task{" +
                "name='" + name + '\'' +
                ", type=" + type +
                '}';
    }
}
